<template>
    <div class="child">
        <h3>这是子组件</h3>
        <slot :user="user"></slot>
    </div>
</template>

<script>
    export default {
        name: "slot-scope-child",
        data() {
            return {
                user: {
                    name: '小赵'
                }
            }
        }
    }
</script>

<style scoped>

</style>